package ModelLayer;


/**
 * 
 * @Author (Alexander Hvidberg, Dennis Kirkebak & Thomas Kulmbach)
 * @Team (Group 1)
 * @Version (08/11/13)
 * 
 */
public class DVDArticle
{
    private int serialNumber;
    private String aqDate;
    private double aqPrice;
    private int lastserial;

    /**
     * Constructor for objects of class DVDArticle
     * 
     * 
     */
    public DVDArticle(int serialNumber, String aqDate, double aqPrice)
    {
        this.serialNumber = serialNumber;
        this.aqDate = aqDate;
        this.aqPrice = aqPrice;
        
    }
    
    /**
     * Set the serial number.
     * 
     * @param int number - The serialnumber of the copy/article
     */
    public void setSerialNumber(int number)
    {
        serialNumber = number;
    }
    
    /**
     * Set the aquire date.
     * 
     * @param String date - Sets the acquiring date of the DVD
     */
    public void setAqDate(String date)
    {
        aqDate = date;
    }
    
    /**
     * Set the aquire price.
     * 
     * @param double price - Sets the acquiring price of the DVD
     */
    public void setAqPrice(double price)
    {
        aqPrice = price;
    }
    
    /**
     * Return the serial number.
     * 
     * @return int serialNumber - Returns the serialnumber of the DVD article
     */
    public int getSerialNumber()
    {
        return serialNumber;
    }
    
    /**
     * Return the aquire date.
     * 
     * @return String aqDate - Returns the acquiring date of this article
     */
    public String getAqDate()
    {
        return aqDate;
    }
    
    /**
     * Return the aquire price.
     * 
     * @return double aqPrice - Returns the acquiring price of this article
     */
    public double getAqPrice()
    {
        return aqPrice;
    }

    /**
     * Prints information about this DVDArticle.
     */
    public void printInfo()
    {
        System.out.println("Serialnumber: "+serialNumber);
        System.out.println("Acquisition date: "+aqDate);
        System.out.println("Acquisition price: "+aqPrice+ " \n");
    }
}
